<script src="../../../../../../public/static/global/My97DatePicker/WdatePicker.js"></script>
{extend name="$BASE_POPUP_FORM" /}
{block name="body"}
<link rel="stylesheet" type="text/css" href="__STATIC__/easyui/themes/custom/easyui.css" />
<style>
    .edui-editor, .edui-editor-iframeholder {
        width: 790px !important;
    }
    .img_upload_wrp .img_upload_box.img_upload_preview_box{
        width:120px !important;
        height:120px !important;
    }
    .img_box{
        position: relative;
        width: 150px;
        height: 150px;
    }
    .opt_set{
        position: absolute;
        top: 120px;
        width: 100%;
        height: 30px;
        right: 0px;
        background-color: #c2c2c2d1;
    }
    #js_append_img{
        display: inline-flex;
    }
</style>
<div class="box-content">
    <input type="hidden" name="id" id="id" value="{$id}"/>

    <div class="control-row col-2">
        <div class="control-group">
            <label class="control-label">导游姓名</label>
            <div class="controls">
                <input type="text" id="guide_name" value="" name="guide_name" class="form-control required"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">性别</label>
            <div class="controls">
                <select name="sex" id="sex" class="form-control">
                    <option value="0">男</option>
                    <option value="1">女</option>
                    <option value="2">隐藏</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">标签</label>
            <div class="controls">
                <input type="text" id="tags" name="tags" value="" class="form-control required"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">手机号</label>
            <div class="controls">
                <input type="text" id="phone" value="" name="phone" class="form-control"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                头像
            </label>
            <div class="controls">
                <div id="js_upload_wrp">
                    <input type="hidden" id="pic" name="head_portrait" value="" class="" />
                    {:hook('picResource',array('name'=>'head_portrait','folder'=>'poster','tips'=>'建议尺寸：1:2。仅支持.jpg .png格式长方形照片。','callback'=>'uploadImgCallback'))}
                </div>
            </div>
        </div>
    </div>
        <div class="control-group">
            <label class="control-label">导游简介</label>
            <div class="controls">
                <textarea style="width:790px" name="introduce" id="introduce" placeholder="请输入内容" class="textarea" ></textarea>
            </div>
        </div>

    <!--<div class="control-group">-->
        <!--<label class="control-label">资讯内容</label>-->
        <!--<div class="controls">-->
            <!--<textarea id="content" name="content"></textarea>-->
            <!--{:hook('editor', array('height'=>'','id'=>"",'name'=>'content'))}-->
        <!--</div>-->
    <!--</div>-->
</div>
{/block}

{block name="script"}

<script type="text/javascript">

    function uploadImgCallback(path) {

        $("#pic").val(path);
    }
    function onLoadDataSuccess(data) {
        $(".preview_photo").show().attr('src',data['head_portrait']);
        $('.js_add_gray').hide();
    }
</script>
{/block}


